package com.imooc.account.service;

import com.imooc.account.dao.AccountDao;

/**
 * @program: nettydemo
 * @description:
 * @author: jason.jia
 * @create: 2018-07-03 18:48
 **/
public class AccountServiceImpl implements AccountService {

    private AccountDao accountDao;

    @Override
    public void transfer(String out, String in, Double money) {
       accountDao.inMoney(in, money);
       int a = 1/0;
       accountDao.outMoney(out, money);
    }

    public void setAccountDao(AccountDao accountDao) {
        this.accountDao = accountDao;
    }
}
